package com.ticket.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ticket.entity.Player;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PlayerMapper extends BaseMapper<Player> {
    
    @Select("SELECT * FROM players WHERE team_id = #{teamId} ORDER BY number")
    List<Player> getPlayersByTeamId(Long teamId);
} 